package cn.gmcx.lazy.izze.pojo;

import cn.gmcx.lazy.izze.enums.DynamicTypeEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 项目动态，保存角色操作
 * </p>
 *
 * @author GMCX
 * @since 2024-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dynamic")
@AllArgsConstructor
@NoArgsConstructor
public class Dynamic implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目动态id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id 必填
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 操作类型 有“创建了”、“更新了”、“删除了”分别对应 0 ，1 ，2
     */
    @TableField("type")
    private DynamicTypeEnum type;

    /**
     * 用户操作
     */
    @TableField("operate")
    private String operate;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;



}
